package com.wing.supplier.service;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.wing.common.utils.JsonResult;
import com.wing.supplier.entity.request.SupplierCreateRequest;
import com.wing.supplier.entity.request.SupplierPartnerClassCreateRequest;
import com.wing.supplier.entity.response.SupplierPartnerClassResponse;
import com.wing.supplier.entity.response.SupplierQueryResponse;

import java.util.List;


/**
 * 往来单位管理
 */
public interface SupplierService {

    /**
     * 获取供应商
     * @return
     */
    List<SupplierQueryResponse> getSupplierList();

    /**
     * 创建供应商
     * @return
     */
    JsonResult createSupplier(SupplierCreateRequest supplierCreateRequest);

    /**
     * 修改供应商
     * @return
     */
    JsonResult updateSupplier(SupplierCreateRequest supplierCreateRequest);


    /**
     * 获取供应商分类  PARTNER_CLASS
     * @return
     */
    List<SupplierPartnerClassResponse> getSupplierListPartnerClass() throws JsonProcessingException;

    /**
     * 创建供应商分类
     * @param supplierPartnerClassCreateRequest
     * @return
     */
    JsonResult createSupplierPartnerClass(SupplierPartnerClassCreateRequest supplierPartnerClassCreateRequest);



}
